package com.topwalk.datacollect.dao.imp;

import com.topwalk.datacollect.dao.TZcBorderDeviceInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public class TZcBorderDeviceInfoDaoImpl implements TZcBorderDeviceInfoDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;


    @Override
    public List<Map<String, Object>> findByDeviceIp(String deviceIp) {
        String sql = "select deviceID from t_zc_border_deviceinfo where deviceIP = ?";
        return jdbcTemplate.queryForList(sql,deviceIp);



    }
}
